﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="search.aspx.cs" Inherits="search" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title><%=skey %> 漫画搜索 雨泽漫画</title>
    <link href="/css/main.css" rel="stylesheet" type="text/css" />
    <script src="/Scripts/jquery.js" type="text/javascript"></script>
    <script type="text/javascript" src="/Scripts/ad.js"></script>
    <script type="text/javascript" src="/Scripts/Common.js"></script>
</head>
<body>
    <%= createTop_nav() %>
    <%= createTop_main() %>
    <div class="height_4px">
    </div>
    <div style="width:978px;margin:0 auto; border:1px solid #999;text-align:center;">
        <%= adbll.GetModelByCache(1).adcontent %>
    </div>
    <div class="height_4px">
    </div>
    <script type="text/javascript">        $('#kw').val('<%=skey %>');</script>
    <div class="main">
        <div style="border: 1px solid #999999;">
            <% if (true)
               {
            %>
            
            <% }
               else
               {
            %>
            
            <%
               } 
            %>
            <h2 class="bar">
                <span class="orderNav"><em>排序：</em> <a href="?key=<%=skey %>" title="更新时间" <%=linkcls %>>
                    更新时间</a> | <a href="?key=<%=skey %>&o=1" title="添加时间" <%=linkcls1 %>>添加时间</a> | <a href="?key=<%=skey %>&o=2"
                        title="点击次数" <%=linkcls2 %>>点击次数</a></span><strong class="position">您当前的位置 ：<em><a href="/">漫画首页</a>
                            >> 搜索关于“<b><%=skey %></b>”的漫画</em></strong></h2>
            <!--耗时67毫秒-->
            <div class="blank8">
            </div>
            <div class="pagerHead">
                <%if (recordCount > 0)
                  { %>
                      <span><a href="<%=url %>" class="first" title="首页"><em>首页</em></a><a
                    href="<%=url %>&p=<%=pageIndex-1<1?1:pageIndex-1 %>" class="prev"
                    title="上一页"><em>上一页</em></a><a href="<%=url %>&p=<%=pageIndex+1 > pageCount?pageCount:pageIndex+1 %>"
                        class="next" title="下一页"><em>下一页</em></a><a href="<%=url %>&p=<%=pageCount %>"
                            class="last" title="尾页"><em>尾页</em></a></span>共搜索到<strong><%=recordCount%></strong>本漫画，当前第<strong><%=pageIndex %></strong>页，共<strong><%=pageCount%></strong>页
                 <% } %>
                </div>
            <div class="blank4">
            </div>
            <div class="bookChrList">
                <%if (recordCount == 0)
                      {
                          %>
                        <div class="no">暂时还没有搜索到有关“<strong><%=skey %></strong>”的漫画。<br />
                        雨泽漫画建议您<strong>缩短关键字</strong>进行查询（例如：<strong>火影忍者漫画</strong>，您输入<strong>火影忍者</strong>或<strong>火影</strong>或<strong>忍者</strong>即可）！<br />
                        您也可以使用拼音查询进行查询（例如：<strong>火影忍者</strong>,您输入“<strong>huoyingrenzhe</strong>”或者 “<strong>hyrz</strong>”即可）！</div>
                    <%
                      } %>
                <ul>
                        <% foreach (System.Data.DataRow dr in dt.Rows)
                           {
                        %>
                        <li>
                            <div class="cover">
                                <a href="/comic/<%=dr["id"]%>/">
                                    <img src="/cpic/<%=dr["mhfm"]%>" alt="<%=dr["mhmc"]%>" /></a></div>
                            <div class="intro">
                                <h2>
                                    <a href="/comic/<%=dr["id"]%>/" class="<%=Convert.ToBoolean(dr["tj"])?"new":"" %>" title="<%=dr["mhmc"]%>">
                                        <%=dr["mhmc"]%></a></h2>
                                <em>[
                                    <%
                               if (Convert.ToBoolean(dr["zt"]))
                               {
                                    %>
                                    <a class="green" target="_blank" href="/comic/<%=dr["id"]%>/<%=dr["zjid"]%>.html" title="完结">
                                        完结</a>
                                    <%
                               }
                               else
                               {
                                    %>
                                    最新话卷：<a class="red" target="_blank" href="/comic/<%=dr["id"]%>/<%=dr["zjid"]%>.html"
                                        title="最近更新时间:<%=shortDate(dr["time"])%>"><%=dr["zjmc"]%></a>
                                    <%                                
                                          } %>
                                    ]</em><em> [ 最近更新：<abbr><%=shortDate(dr["time"])%></abbr>
                                        ]</em><span><%=dr["mhjs"]%></span><em>[ 作者：<%= YuuzleComic.Common.Input.CreateAuthorLinks(dr["zzid"].ToString(),dr["zzmc"].ToString()) %>
                                            ]</em></div>
                        </li>
                        <%
                           } %>
                </ul>
                <div class="blank4">
                </div>
            </div>
            <div class="pagerFoot">
                <%if (recordCount > 0)
                  { %>
                <span>共<strong><%=pageCount %></strong>页</span>
                <% if (pageIndex != 1)
                   {
                %>
                &nbsp;<a href="<%=url %>" title="首页">首页</a>
                <%
                   } %>
                <% 
                    int s = pageIndex - 4;
                    if (s < 1)
                    {
                        s = 1;
                    }
                    for (int i = s; i <= pageCount; i++)
                    {
                        if (pageIndex == i)
                        {
                %>
                &nbsp;<span>[<%=i %>]</span>
                <%
                        }
                        else
                        {
                %>
                &nbsp;<a href="<%=url %>&p=<%=i %>" title="第<%=i %>页">[<%=i %>]</a>
                <%
                       }
                        if (i >= s + 8)
                        {
                            break;
                        }
                    } %>
                <% if (pageIndex != pageCount)
                   {
                %>
                &nbsp;<a href="<%=url %>&p=<%=pageCount %>" title="尾页">尾页</a>
                <%
                   } %>
                <% } %>
            </div>
            <div class="blank4">
            </div>
        </div>
    </div>
    <div class="blank4">
	</div>
	<div style="width:978px;margin:0 auto; border:1px solid #999;text-align:center;">
        <%= adbll.GetModelByCache(11).adcontent %>
    </div>
	<div class="blank4">
	</div>
    <%=createFoot() %>
</body>
</html>
